module Base
{
	vehicle fhq67Porsche912
	{
		mechanicType = 1,
		offRoadEfficiency = 0.7,
		engineRepairLevel = 5,
		playerDamageProtection = 0.8,

		model
		{
			file = fhq911,
			scale = 1.8200,
			offset = 0.0000 0.0934 0.0110,
		}

		spawnOffsetY = 0.12999995,

		skin
		{
			texture = Vehicles/vehicle_fhq67912_shell,
		}

		textureMask = Vehicles/vehicle_fhq67911_mask,
		textureLights = Vehicles/vehicle_fhq67911_lights,
		textureDamage1Overlay = Vehicles/Veh_Blood_Mask,
		textureDamage2Overlay = Vehicles/Veh_Blood_Hvy,
		textureDamage1Shell = Vehicles/Veh_Damage1,
		textureDamage2Shell = Vehicles/Veh_Damage2,
		textureRust = Vehicles/Veh_Rust,

		sound
		{
			engine = VehicleEngineSmallCar,
			engineStart = VehicleEngineSmallCar,
			engineTurnOff = VehicleEngineSmallCar,
			horn = VehicleHornStandard,
			ignitionFail = VehicleIgnitionFailSmallCar,
		}

		extents = 0.7473 0.5165 1.9560,
		mass = 770,
		physicsChassisShape = 0.7473 0.5165 1.9560,
		centerOfMassOffset = 0.0000 0.2637 0.0000,
		shadowExtents = 0.7672 2.1104,
		shadowOffset = 0.0000 0.0000,
		engineForce = 3200,
		engineLoudness = 55,
		engineQuality = 70,
		maxSpeed = 90f,
		gearRatioCount = 4,
		stoppingMovementForce = 4.0f,
		rollInfluence = 0.7f,
		steeringIncrement = 0.04,
		steeringClamp = 0.3,
		suspensionStiffness = 30,
		suspensionCompression = 3.83,
		suspensionDamping = 2.88,
		maxSuspensionTravelCm = 15,
		suspensionRestLength = 0.2f,
		wheelFriction = 1.8f,
		frontEndHealth = 150,
		rearEndHealth = 150,
		seats = 4,

		wheel FrontLeft
		{
			front = true,
			offset = 0.2857 -0.1099 0.5495,
			radius = 0.14f,
			width = 0.20f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.2857 -0.1099 0.5440,
			radius = 0.14f,
			width = 0.20f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.2857 -0.1099 -0.5000,
			radius = 0.14f,
			width = 0.20f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.2857 -0.1099 -0.5000,
			radius = 0.14f,
			width = 0.20f,
		}

		template = PassengerSeat4,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.1484 0.0330 -0.1319,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.5330 -0.2637 -0.0934,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.1484 0.0330 -0.1319,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.5330 -0.2637 -0.0934,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger RearLeft
		{
			position inside
			{
				offset = 0.1484 0.0110 -0.3297,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
			}
		}

		passenger RearRight
		{
			position inside
			{
				offset = -0.1484 0.0110 -0.3297,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
			}
		}

		area Engine
		{
			xywh = 0.0000 -1.1923 0.7473 0.4286,
		}

		area TruckBed
		{
			xywh = 0.0000 1.1923 0.7473 0.4286,
		}

		area SeatFrontLeft
		{
			xywh = 0.6209 0.0330 0.4945 0.4945,
		}

		area SeatFrontRight
		{
			xywh = -0.6209 0.0330 0.4945 0.4945,
		}

		area GasTank
		{
			xywh = 0.5989 0.4011 0.4505 0.4505,
		}

		area TireFrontLeft
		{
			xywh = 0.5989 0.5549 0.4505 0.4505,
		}

		area TireFrontRight
		{
			xywh = -0.5989 0.5549 0.4505 0.4505,
		}

		area TireRearLeft
		{
			xywh = 0.5989 -0.4890 0.4505 0.4505,
		}

		area TireRearRight
		{
			xywh = -0.5989 -0.4890 0.4505 0.4505,
		}

		template = TrunkDoor,
		template = Trunk/part/TruckBed,
		template = Seat/part/SeatFrontLeft,
		template = Seat/part/SeatFrontRight,
		template = Seat/part/SeatRearLeft,
		template = Seat/part/SeatRearRight,

		part SeatRearLeft
		{
			table install
			{
				area = SeatFrontLeft,
			}

			table uninstall
			{
				area = SeatFrontLeft,
			}
		}

		part SeatRearRight
		{
			table install
			{
				area = SeatFrontRight,
			}

			table uninstall
			{
				area = SeatFrontRight,
			}
		}

		template = GloveBox,
		template = GasTank,
		template = Battery,
		template = Engine,
		template = Muffler,

		part Muffler
		{
			model Defualt
			{
				file = fhq911Exhaust,
			}
		}

		template = EngineDoor,

		part Heater
		{
			category = engine,

			lua
			{
				update = Vehicles.Update.Heater,
			}
		}

		part PassengerCompartment
		{
			category = nodisplay,

			lua
			{
				update = Vehicles.Update.PassengerCompartment,
			}
		}

		template = Windshield/part/Windshield,
		template = Windshield/part/WindshieldRear,
		template = Window/part/WindowFrontLeft,
		template = Window/part/WindowFrontRight,
		template = Window/part/WindowRearLeft,
		template = Window/part/WindowRearRight,
		
		part WindowRearLeft
		{
			area = TireRearLeft,
			parent =,

			table install
			{
				requireInstalled =,
			}
		}

		part WindowRearRight
		{
			area = TireRearRight,
			parent =,

			table install
			{
				requireInstalled =,
			}
		}
		
		template = Door/part/DoorFrontLeft,
		template = Door/part/DoorFrontRight,

		part DoorFrontLeft
		{
			model Defualt
			{
				file = fhq911LMirror,
			}
		}

		template = Tire,

		part TireFrontLeft
		{
			model InflatedTirePlusWheel
			{
				file = fhqMZClscSmthieWheelLeft,
			}
		}

		part TireFrontRight
		{
			model InflatedTirePlusWheel
			{
				file = fhqMZClscSmthieWheelRight,
			}
		}

		part TireRearLeft
		{
			model InflatedTirePlusWheel
			{
				file = fhqMZClscSmthieWheelLeft,
			}
		}

		part TireRearRight
		{
			model InflatedTirePlusWheel
			{
				file = fhqMZClscSmthieWheelRight,
			}
		}

		template = Brake,
		template = Suspension,
		template = Radio,
		template = Headlight,
		
		useChassisPhysicsCollision = false,

        physics box
        {
            offset = 0.0000 0.0922 -0.0110,
            extents = 0.7473 0.1868 1.9011,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.2637 -0.6081,
            extents = 0.6484 0.2088 0.6923,
            rotate = -29.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.3462 -0.1439,
            extents = 0.6484 0.3516 0.4176,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.2797 0.1264,
            extents = 0.6484 0.3846 0.3187,
            rotate = -53.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.1739 0.5769,
            extents = 0.7473 0.1868 0.6813,
            rotate = 14.0000 0.0000 0.0000,
        }

		attachment trailer
		{
			offset = 0.0000 0.0055 -0.9890,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}

		attachment trailerfront
		{
			offset = 0.0000 0.0000 0.9670,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}
	}
}
